<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增会员级别</title>
<script type="text/javascript">
	var base = "${base}/";
</script>
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css" />
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<!--时间控件-->
<script src="${base}/scripts/form/datePicker/WdatePicker.js" type="text/javascript"></script>
<!--表单验证脚本-->
</head>
<body>
	<div class="position">
		<div class="center">
			<div class="left">
				<div class="right">
					<span>当前位置：会员等级管理 >> 新增会员等级</span>
				</div>
			</div>
		</div>
	</div>
	<div class="box1" whiteBg="true">
		<form action="${base}/admin/credit/update.action" method="post" id="add_credit_form"
			 target="credit_right">
			<table class="tableStyle" transMode="true">
			<input type="hidden" name="credit.id" value="${(credit.id)!''}"/>
				<tr>
					<td>会员等级：</td>
					<td><input type="text" name="credit.creditNo" id="credit.creditNo" class="text_style" value="${(credit.creditNo)!''}"/>
					<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>积分条件：</td>
					<td>
						<input type="number" id="creditMin" name="credit.creditPart" class="text_style" style="width: 80px;"/>
						~
						<input type="number" id="creditMax" name="credit.creditPart" class="text_style" style="width: 80px;"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>会员积分等级描述：</td>
					<td><span class="float_left">
						<textarea name="credit.description" class="textarea_style">${(credit.description)!''} </textarea></span>
						<span class="img_light" style="height: 80px;" title="限制在200字以内"></span>
					</td>
				</tr>
				<tr>
					<td>
					</td>
					<td STYLE="float:left;">
						<input type="submit" value="提 交 "/> <input
						type="reset" value="重 置 " />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
<script>
$(function() {
	var creditPart = "${(credit.creditPart)!''}";
	if (creditPart != "") {
		var creditArray = creditPart.split(", ");
		var creditMin = creditArray[0];
		var creditMax = creditArray[1];
		$("#creditMin").val(creditMin);
		$("#creditMax").val(creditMax);
	}
});
</script>